﻿namespace CSharpPro._0929;

public class demo
{
    //输出10以内的偶数，用while循环
    public static void Test1()
    {
        int i = 0;
        while (i < 10)
        {
            if (i % 2 == 0)
            {
                Console.WriteLine(i);
            }
            i++;
        }
    }
    
    
}